-- GENERATED SPELL FOR [Epoch Hunter] --


function spell0_18096(pUnit, Event) --@Impending Death,n/a--
pUnit:FullCastSpellOnTarget(31916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18096', 24000, 1)
end

function spell1_18096(pUnit, Event) --@Magic Disruption Aura,Self--
pUnit:FullCastSpellOnTarget(33834,pUnit)
pUnit:RegisterEvent('Sorts_18096', 15000, 1)
end

function spell2_18096(pUnit, Event) --@Sand Breath,n/a--
pUnit:FullCastSpellOnTarget(31914,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18096', 12000, 1)
end

function spell3_18096(pUnit, Event) --@Wing Buffet,Self--
pUnit:FullCastSpellOnTarget(31475,pUnit)
pUnit:RegisterEvent('Sorts_18096', 784, 1)
end

function Sorts_18096(pUnit, Event)
local choix_sorts_18096 = math.random(0, 3)
if choix_sorts_18096 == 0 then
pUnit:RegisterEvent('spell0_18096', 1, 1)
end
if choix_sorts_18096 == 1 then
pUnit:RegisterEvent('spell1_18096', 1, 1)
end
if choix_sorts_18096 == 2 then
pUnit:RegisterEvent('spell2_18096', 1, 1)
end
if choix_sorts_18096 == 3 then
pUnit:RegisterEvent('spell3_18096', 1, 1)
end
end

function mob18096_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18096', math.random(1500, 3000), 1)
end

function mob18096_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18096_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18096_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18096, 1, 'mob18096_Action')
RegisterUnitEvent(18096, 2, 'mob18096_Leave')
RegisterUnitEvent(18096, 3, 'mob18096_Kill')
RegisterUnitEvent(18096, 4, 'mob18096_Die')
